package cn.java.swim;

public class Test {
	public static void main(String[] args) {
		Detective d = new Detective();
		fish f = new fish();
		d.detective(f);
		Dolphin D = new Dolphin();
		d.detective(D);
		Submarine s = new Submarine();
		d.detective(s);
	}

}
